package com.yongan.purchase.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yongan.purchase.entity.PurchaseGoodsDetails;

public interface PurchaseGoodsDetailsDao {

	PurchaseGoodsDetails queryById(String purchaseGoodsDetailsId);
	
	List<PurchaseGoodsDetails> queryAllByTopId(String 	topId);
	
	int insertPurchaseGoodsDetails(PurchaseGoodsDetails purchaseGoodsDetails);
	
	int deletePurchaseGoodsDetails(String purchaseGoodsDetailsId);
	
	int updatePurchaseGoodsDetails(PurchaseGoodsDetails purchaseGoodsDetails);

	int deleteAllPurchaseGoodsDetails(String topId);
	/*
	 * type 新增（i）还是滞空（d）
	 * purchaseGoodsDetailsId 对象ID
	 * content 新增的数额
	 */
	int updateDetailsRksl(@Param("purchaseGoodsDetailsId")String purchaseGoodsDetailsId,@Param("content")String content);
	
}
